package com.yuxi.excelEntity;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import org.drools.lang.DRLParser.exists_key_return;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.yuxi.Config.ConfigStatic;
import com.yuxi.Entity.UserTaskCompletion;
import com.yuxi.Util.StringManageUtil;

public class RealtimeTasks {	
	private Integer id;
	private String informationConternt; //安全信息内容
	//private String informationClassificationId;//信息分级
	private String mesureAndStandard;//处置标准及措施	
	//private String taskDispatchTime; //派遣时间
	private String personDispatchName;//派遣人
	private String zeRenTime;//完成时限
	//private String taskCompletion="";//完成情况
	private String perSonLiableName;//责任人
	//private String remark;//备注


	
	
	public String getInformationConternt() {
		return informationConternt;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setInformationConternt(String informationConternt) {
		this.informationConternt = informationConternt;
	}
	
	
	public String getZeRenTime() {
		return zeRenTime;
	}
	public void setZeRenTime(String zeRenTime) {
		this.zeRenTime = zeRenTime;
	}
	
	public String getPersonDispatchName() {
		return personDispatchName;
	}
	public void setPersonDispatchName(String personDispatchName) {
		this.personDispatchName = personDispatchName;
	}
	public String getPerSonLiableName() {
		return perSonLiableName;
	}
	public void setPerSonLiableName(String perSonLiableName) {
		this.perSonLiableName = perSonLiableName;
	}
	
	
	public String getMesureAndStandard() {
		return mesureAndStandard;
	}
	public void setMesureAndStandard(String mesureAndStandard) {
		this.mesureAndStandard = mesureAndStandard;
	}
	public RealtimeTasks(String informationConternt,String informationClassificationId,
			String mesure, String standard, String taskDispatchTime, String personDispatchName, String zeRenTime,
			String taskCompletion, String perSonLiableName, String remark) {
		super();	
		this.informationConternt = informationConternt;
		
		this.mesureAndStandard = mesure;		
//		try{
//			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
//			String date = sdf.format(new Date(Long.parseLong(taskDispatchTime)));				
//			this.taskDispatchTime = date;
//		}catch(Exception e){
//			this.taskDispatchTime = "";
//		}
		this.personDispatchName = personDispatchName;
		try{
			if(ConfigStatic.LongTimeS.equals(zeRenTime)){
				SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd");
				String dat1 = sdf1.format(new Date(Long.parseLong(zeRenTime)));
				this.zeRenTime = dat1;
			}else{
				this.zeRenTime = "长期";
			}
		}catch(Exception e){
			this.zeRenTime ="";
		}
		//this.taskCompletion=taskCompletion;	
		this.perSonLiableName = StringManageUtil.removeDot(perSonLiableName);
	//	this.remark = remark;
	}
	
}
